<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function fun() {
            console.log("hello");
            console.log(this);
        }

        //call可以调用函数
        fun.call();

        //call可以修改this指向
        var o = {
            name: 'Tom'
        }
        fun.call(o);
    </script>
</body>

</html>